#ifndef CTITLEBAR_H
#define CTITLEBAR_H
#include <QWidget>
#include <QLabel>
#include <QPushButton>
class CTitleBar : public QWidget
{
    Q_OBJECT

public:
    CTitleBar(QWidget* p = nullptr);
    ~CTitleBar();

private:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseDoubleClickEvent(QMouseEvent *event) override;
private:
    void initUI();
    QLabel* m_pLogo;
    QLabel* m_titleTextLabel;

    QPushButton* m_pSetBtn;
    QPushButton* m_pMinBtn;
    QPushButton* m_PMaxBtn;
    QPushButton* m_pCloseBtn;

private slots:
    void onClicked();

signals:
    void sig_close();
};

#endif // CTITLEBAR_H
